home *** CD-ROM | disk | FTP | other *** search
- On Fri, 17 Apr 1998, Matthew Wilcox wrote:
-
- >Andrew Bower
- >> Out of interest, is anyone working on write support for ADFS?
- >
- >I've looked at the current code. It would be hard to add extendable
- >files to it, though in principle, files which are newly created and stay
- >the same length should be able to work quite easily.
- >
- >The trouble is that ADFS (or more truthfully filecore) does not have
- >the concept of the inode. Inodes are what Unix filesystems are built of.
- >They have the following properties:
- >
- >Each file has an inode
- >The inode remains the same during the life of the file
- >Inodes do not map to more than one file.
- >The inode contains all of the metadata for the file except its name.
- umm. ADFS doesn't have inodes in the same way UNIX does, but couldn't you
- get away with the file's ID that appears in the free space map? (He said,
- trying to talk knowledgably, despite the fact that it's 5 years since he
- last wrote an ADFS-E-format-filing-system-reader).
- The IDs still only map to one file, aren't likely to change over it's
- lifetime, and the only problem you have is that the length info is kept in
- the directory info.
- >I cannot think of a good way of faking inodes for ADFS filesystems *except*
- >the following rather horrible idea:
- >
- >Create a structure in memory for each ADFS filesystem mounted. This can
- >be done lazily. Assign each file an inode based on some scheme which will
- >allow for easy mapping between it and the name of the ADFS file. Perhaps
- >hash buckets. Note that it's okay to reuse inodes once a file has been
- >deleted.
- Ur, YUK!! That would be horrible. I mean, mapping names to inodes is gonna
- break as soon as you move a mile about the FS somewhere.
- >Someone should look at other filing systems to see how they cope with
- >filesystems that don't provide nice inodes. When Dickon Hood & I were
- >experimenting with NFS servers under RISC OS, we had a structure that
- >worked well; it was a tree, and the inode we returned was the address
- >within that list. You've got me intrigued now, I might just do it.
- Good man, writable ADFS would be nice. :)
- >The way Russell has done it is faster than this method for read-only
- >but will not extend to writable files.
- I haven't looked at it yet, but what's he done that stops you writing
- files the same way?
- >--
- >Set Alias$Case Set Alias$[ |||| |MSet Alias$Otherwise Set Alias$[ \ Matthew
- >"" |MSet Alias$When If %0=%%0 Then Set Alias$[ "" ||MIf %0=%%0 \ Wilcox
- >Then Set Alias$Otherwise Set Alias$[ |||||||||||||||| ||MIf \
- >%0=%%0 Then Set Alias$When Set Alias$[ ||||||||||||||||
- >unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
- >
-
-